#ifndef __LCD9325_H
#define __LCD9325_H
#define LCD_USE8BIT_MODEL  1
#define USE_HORIZONTAL    0	//????	

#define DATAOUT(x) GPIOB->ODR=x<<3  //????
#define DATAIN     GPIOB->IDR     //????

#include "sys.h"


typedef struct  
{										    
	u16 width;			//LCD ??
	u16 height;			//LCD ??
	u16 id;				//LCD ID
	u8  dir;			//????????:0,??;1,???	
	u16	 wramcmd;		//???gram??
	u16  setxcmd;		//??x????
	u16  setycmd;		//??y????	 
}_lcd_dev; 	

void LCD_Init(void);
void LCD_Clear(u16 Color);
int RGB(int r,int g,int b);
#endif

